<?php 
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
<body>
<table cellpadding="0" cellspacing="1" class="table_form">
  <caption>
  回复留言
  </caption>
  <form action="?module=guestbook&action=reply&gid=<?=$guestbook['gid']?>&submit=1" method="post" name="myform" onSubmit="return doCheck();">
    <tr>
      <td align="right"><span class="tablerowhighlight">标题：</span></td>
      <td  valign="top"><?=$guestbook['title']?></td>
    </tr>
    <tr>
      <td align="right">IP：</td>
      <td  valign="top"><?=$guestbook['ip']?> - <?=$guestbook['country']?></td>
    </tr>
    <tr>
      <td align="right">留言时间：</td>
      <td  valign="top"><?=$guestbook['addtime']?></td>
    </tr>
    <tr>
      <td  width="26%" align="right"> 留言内容： </td>
      <td width="73%"  valign="top"><?=$guestbook['content']?>
        <p>
          <? if($guestbook['reply']) { ?>
        <table cellpadding="10" cellspacing="1" border="0" width="96%" bgcolor="#dddddd">
          <tr>
            <td bgcolor="#efefef"><font color="red"><b>管理员[
              <?=$guestbook['replyer']?>
              ]于
              <?=$guestbook['replytime']?>
              回复：</b></font><br>
              <?=$guestbook['reply']?>            </td>
          </tr>
        </table>
        <? } ?>      </td>
    </tr>
    <tr>
      <td align="right">回复内容：</td>
      <td><textarea name="reply" style="display:none" id="reply"><?=$guestbook['reply']?>
</textarea>
        <?=form::editor("reply","basic",550,400)?>      </td>
    </tr>
    <tr>
      <td align="right">隐藏：</td>
      <td><input type='radio' name='hidden' value='1' <?php if($guestbook['hidden']){?>checked<?php }?>>
        是
        <input type='radio' name='hidden' value='0' <?php if(!$guestbook['hidden']){?>checked<?php }?>>
        否</td>
    </tr>
    <tr>
      <td align="right">批准：</td>
      <td><input type='radio' name='passed' value='1' checked>
        是
        <input type='radio' name='passed' value='0'>
        否</td>
    </tr>
    <tr>
      <td align="right"></td>
      <td><input type="submit" name="Submit" value=" 确定 ">
        &nbsp;
        <input type="reset" name="Reset" value=" 清除 ">      </td>
    </tr>
  </form>
</table>
</body>
</html>